import React, { Component } from 'react'
import {Route, Switch, Redirect} from 'react-router-dom'
import Http from './children/Http/Http'
import HttpAdd from './children/HttpAdd/HttpAdd'
import webSocket from './children/WebSocket/WebSocket'
import webSocketAdd from './children/WebSocketAdd/WebSocketAdd'
export default class SiteMonitor extends Component {

    render() {
        return (
            <Switch>
                <Route path='/siteMonitor/http/list' component={Http} />
                <Route path='/siteMonitor/http/add/:_id' component={HttpAdd} />
                <Route path='/siteMonitor/webSocket/list' component={webSocket} />
                <Route path='/siteMonitor/webSocket/add/:_id' component={webSocketAdd} />
                <Redirect to='/siteMonitor/http/list' />
            </Switch>
        )
    }
}
